﻿using System;
using System.Collections.Generic;
using System.Data;
using nkstdgia.common.ThamDinhGia.BusinessObjects;
using nkstdgia.common.ThamDinhGia.DataAccess;

namespace nkstdgia.common.ThamDinhGia.BusinessLogic
{
    public class DUONG_KHAO_SATBL
    {
        #region ***** Init Methods *****

        DUONG_KHAO_SATDA objDUONG_KHAO_SATDA;

        public DUONG_KHAO_SATBL()
        {
            objDUONG_KHAO_SATDA = new DUONG_KHAO_SATDA();
        }

        #endregion ***** Init Methods *****

        #region ***** Get Methods *****

        /// <summary>
        /// Get DUONG_KHAO_SAT by ma_dks
        /// </summary>
        /// <param name="ma_dks">MA_DKS</param>
        /// <returns>DUONG_KHAO_SAT</returns>
        public DUONG_KHAO_SAT GetByMA_DKS(Int64 ma_dks)
        {
            return objDUONG_KHAO_SATDA.GetByMA_DKS(ma_dks);
        }

        /// <summary>
        /// Get all of DUONG_KHAO_SAT
        /// </summary>
        /// <returns>List<<DUONG_KHAO_SAT>></returns>
        public List<DUONG_KHAO_SAT> GetList()
        {
            return objDUONG_KHAO_SATDA.GetList();
        }

        /// <summary>
        /// Get DataSet of DUONG_KHAO_SAT
        /// </summary>
        /// <returns>DataSet</returns>
        public DataSet GetDataSet()
        {
            return objDUONG_KHAO_SATDA.GetDataSet();
        }

        /// <summary>
        /// Get all of DUONG_KHAO_SAT paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>List<<DUONG_KHAO_SAT>></returns>
        public List<DUONG_KHAO_SAT> GetListPaged(int recperpage, int pageindex)
        {
            return objDUONG_KHAO_SATDA.GetListPaged(recperpage, pageindex);
        }

        /// <summary>
        /// Get DataSet of DUONG_KHAO_SAT paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>DataSet</returns>
        public DataSet GetDataSetPaged(int recperpage, int pageindex)
        {
            return objDUONG_KHAO_SATDA.GetDataSetPaged(recperpage, pageindex);
        }

        #endregion ***** Get Methods *****

        #region ***** Add Update Delete Methods *****

        /// <summary>
        /// Add a new DUONG_KHAO_SAT within DUONG_KHAO_SAT database table
        /// </summary>
        /// <param name="obj_duong_khao_sat">DUONG_KHAO_SAT</param>
        /// <returns>key of table</returns>
        public long Add(DUONG_KHAO_SAT obj_duong_khao_sat)
        {
            return objDUONG_KHAO_SATDA.Add(obj_duong_khao_sat);
        }

        /// <summary>
        /// updates the specified DUONG_KHAO_SAT
        /// </summary>
        /// <param name="obj_duong_khao_sat">DUONG_KHAO_SAT</param>
        /// <returns></returns>
        public void Update(DUONG_KHAO_SAT obj_duong_khao_sat)
        {
            objDUONG_KHAO_SATDA.Update(obj_duong_khao_sat);
        }

        /// <summary>
        /// Delete the specified DUONG_KHAO_SAT
        /// </summary>
        /// <param name="ma_dks">MA_DKS</param>
        /// <returns></returns>
        public void Delete(Int64 ma_dks)
        {
            objDUONG_KHAO_SATDA.Delete(ma_dks);
        }

        #endregion ***** Add Update Delete Methods *****
    }
}